import { createRouter, createWebHistory } from 'vue-router';

import Login from '@/components/views/User/Login.vue'
import Register from '@/components/views/User/register.vue'
import ResetPw from '@/components/views/User/resetpassword.vue'

const routes = [
  {
    path: '/user',
    children: [
      { path: 'register', component: Register },
      { path: 'login', component: Login },
      { path: 'login', component: Login },
      { path: 'resetpw', component: ResetPw },

    ],

  },

  { path: '/', redirect: '/user/login' },


]



const router = createRouter({
  routes: routes,
  history: createWebHistory()
})
export default router;